package com.alili_tv.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 弹幕表
 * </p>
 *
 * @author baomidou
 * @since 2023-03-17
 */
@Getter
@Setter
@ToString
public class Bullet implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 内容
     */
    private String content;

    /**
     * 视频id
     */
    private Long videoId;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 出现时间
     */
    private Double time;

    /**
     * 弹幕类型，0滚动，1顶部，2底部
     */
    private Integer type;

    /**
     * 颜色
     */
    private Integer color;

    /**
     * 时期
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Video video;
}
